package com.fancy.learncenter.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.superservice.lya.R;

import java.util.ArrayList;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 */
public class MaterialFragment extends Fragment {

    @Bind(R.id.recycleView)
    RecyclerView recycleView;

    public MaterialFragment() {
        // Required empty public constructor
    }


    ArrayList<String> itemDatas = new ArrayList<>();


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View view = inflater.inflate(R.layout.fragment_material, container, false);
        ButterKnife.bind(this, view);

//        for (int i = 0; i < 10; i++) {
//            itemDatas.add("");
//        }
//
//        LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());
//        linearLayoutManager.setOrientation(LinearLayoutManager.VERTICAL);
//        recycleView.setLayoutManager(linearLayoutManager);
//
//        MaterialAdapter adapter = new MaterialAdapter(getActivity(), itemDatas);
//        recycleView.setAdapter(adapter);


        return view;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }
}
